package com.wty.basic.extendsDemo;

/**
 * @Author wangtengyu
 * @Create 2018-08-08-10:06
 */
public class Fu {

    private String privateName="fuPrivate";

    public String publicName="fuPublic";

    protected String protectedName="fuProtected";

    String defaultName="fuDefault";


    private void privateMethod(){
        System.out.println("父类private方法");
    }

    public void publicMethod(){
        System.out.println("父类public方法");
    }

    protected void protectedMethod(){
        System.out.println("父类protected方法");
    }

    void defaultMethod(){
        System.out.println("父类default方法");
    }





}
